About

Installation | Demonstration | Citations

EconFreedom contains two primary datasets on economic freedom:

  1. efwpnl: The Economic Freedom of the World (EFW) cross-country panel
  2. efna: The Economic Freedom of the World (EFNA) panel of U.S. states

Contents

Installation

# install.package("devtools")
devtools::install_github("acforrester/EconFreedom")
#> Skipping install of 'EconFreedom' from a github remote, the SHA1 (30ed4e74) has not changed since last install.
#>   Use `force = TRUE` to force installation

Demonstration

# load packages to use
if (!require("pacman")) install.packages("pacman")
#> Loading required package: pacman
pacman::p_load(tidyverse,plotly,DT)

Economic Freedom of the World (EFW)

# load the EFW panel
EconFreedom::efwpnl %>% 
  # keep
  arrange(-year, iso_code) %>%
  # print data
  DT::datatable(., 
                rownames = FALSE,
                extensions = c("Buttons"), 
                options = list(
                  dom = "Bfrtip",
                  buttons = c("csv", "excel", "pdf")
                  )
                )

Economic Freedom of North America (EFNA)

# load the EFNA panel
EconFreedom::efna %>% 
  # keep
  arrange(-year, stfips) %>%  
  # print data
  DT::datatable(., 
                rownames = FALSE,
                extensions = c("Buttons"), 
                options = list(
                  dom = "Bfrtip",
                  buttons = c("csv", "excel", "pdf")
                  )
                )

Citations

James Gwartney, RobertLawson, Joshua Hall, and Ryan Murphy (2021). Economic Freedom Dataset, published in Economic Freedom of the World: 2021 Annual Report. Fraser Institute. www.fraserinstitute.org/economic-freedom/dataset

Dean Stansel, José Torra, and Fred McMahon (2020). Economic Freedom of North America 2020. Fraser Institute. https://www.fraserinstitute.org/studies/economic-freedom-of-north-america-2020